package lib.pictureToVersion;

import lib.readerToWriter.readFile;
import interFace.versionInterface;

public class Version implements versionInterface {

	private readFile a = new readFile();
	private String version;

	public Version() {

		version = a.readFileByLines("/resource/version/version.txt");
	}

	/* (non-Javadoc)
	 * @see lib.versionInterface#getVersion()
	 */
	@Override
	public String getVersion() {
		return version;
	}

	/* (non-Javadoc)
	 * @see lib.versionInterface#getVersion1()
	 */
	@Override
	public String getVersion1() {
		String v = version.substring(version.indexOf('_') + 1);
		return v.substring(0, v.indexOf('_'));
	}

	/* (non-Javadoc)
	 * @see lib.versionInterface#getVersion2()
	 */
	@Override
	public String getVersion2() {
		String v = version.substring(version.indexOf('_') + 1);
		return v.substring(v.indexOf('_') + 1);
	}
}
